import time


class TC:
    def __init__(self, tm):
        self._tm = tm
        self._bProblem = 0

    def setup(self):
        print("Setting up the Test")
        time.sleep(1)
        self._tm.prepareReporting()

    def execute(self):
        if not self._bProblem:
            print("Executing the test")
            time.sleep(1)
        else:
            print("Problem in setup. Test not executed")

    def tearDown(self):
        if not self._bProblem:
            print("Tearing down")
            time.sleep(1)

    def setTM(self, tm):
        self._tm = tm

    def setProblem(self, value):
        self._bProblem = value
